import Vue from 'vue'
import App from './App'
import router from './router'
import axios from 'axios'
axios.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded';
Vue.prototype.$axios = axios;
import qs from 'qs';


Vue.config.productionTip = false;
// 引入echarts
import echarts from 'echarts'

import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';

import iView from 'iview';
import 'iview/dist/styles/iview.css';
Vue.use(iView);

Vue.use(ElementUI);

Vue.prototype.$echarts = echarts;

Vue.prototype.$axios= axios;

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
});
